#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
//三个数之间判断中间值
int main()
{
	int num1, num2, num3;
	int max, min, mid;
	//输入
	while (scanf("%d %d %d", &num1, &num2, &num3) != EOF)
	{
		//先找出最大值
		max = num1;
		if (num2 > max)
		{
			max = num2;
		}
		if (num3 > max)
		{
			max = num3;
		}
		//后找出最小值
		min = num1;
		if (num2 < min)
		{
			min = num2;
		}
		if (num3 < min)
		{
			min = num3;
		}
		//通过总和减去最大最小值得到中间值
		mid = num1 + num2 + num3 - max - min;
        //输出
		printf("%d\n", mid);
	}
	return 0;
}